import axios from '../axios'
// 首页数据查询
export const findPage = (data) => {
    return axios({
        url: '/cloud/hospital/list',
        method: 'post',
        data
    })
}

// 保存
export const save = (data) => {
    return axios({
        url: '/cloud/hospital/save',
        method: 'post',
        data
    })
}

// 修改医院状态
export const updateStatus = (data) => {
    return axios({
        url: '/cloud/hospital/updateStatus',
        method: 'post',
        data
    })
}

// 查询详情
export const findByid = (data) => {
    return axios({
        url: '/cloud/hospital/info/'+data.id,
        method: 'get',
        data
    })
}

// 修改医院信息
export const update = (data) => {
    return axios({
        url: '/cloud/hospital/update',
        method: 'post',
        data
    })
}